package main

import (
	"gitee.com/yumo01/zg5-10A/began"
	"gitee.com/yumo01/zg5-10A/global"
	_ "gitee.com/yumo01/zg5-10A/initialize"
	"gitee.com/yumo01/zg5-10A/logic"
	"google.golang.org/grpc"
)

func main() {
	began.NewGrpcServer(global.Conf.Port, func(s *grpc.Server) {
		logic.RegisterUsersServer(s)
		logic.RegisterBooksServer(s)
		logic.RegisterGoodsServer(s)
	})
}
